lionsApp.config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider
        .when('', '/home')
    $stateProvider
        .state('home', {
            title: '京狮基金拍卖',
            url: '/home',
            views: {
                'mainView': {
                    templateUrl: 'templates/home/home.html',
                    controller: 'homeCtrl'
                }
            }
        })
        .state('detail', {
            title: '京狮基金拍卖',
            url: '/detail',
            views: {
                'mainView': {
                    templateUrl: 'templates/detail/detail.html',
                    controller: 'detailCtrl'
                }
            }
        })
        .state('identity', {
            title: '京狮基金拍卖',
            url: '/identity',
            views: {
                'mainView': {
                    templateUrl: 'templates/identity/identity.html',
                    controller: 'identityCtrl'
                }
            }
        })
        .state('myAuction', {
            title: '我的竞拍',
            url: '/my',
            views: {
                'mainView': {
                    templateUrl: 'templates/my-auction/my.html',
                    controller: 'myCtrl'
                }
            }
        })
        .state('rankingTeam', {
            title: '服务队竞拍排行榜',
            url: '/ranking/team',
            views: {
                'mainView': {
                    templateUrl: 'templates/ranking/team/team.html',
                    controller: 'ranking-teamCtrl'
                }
            }
        })
        .state('rankingPersonal', {
            title: '个人竞拍排行榜',
            url: '/ranking/personal',
            views: {
                'mainView': {
                    templateUrl: 'templates/ranking/personal/personal.html',
                    controller: 'ranking-personalCtrl'
                }
            }
        })
        .state('offlineList', {
            title: '京狮基金拍卖',
            url: '/offline/list',
            views: {
                'mainView': {
                    templateUrl: 'templates/offline/list/list.html',
                    controller: 'offline-listCtrl'
                }
            }
        })
        .state('offlinePrice', {
            title: '京狮基金拍卖',
            url: '/offline/price',
            views: {
                'mainView': {
                    templateUrl: 'templates/offline/price/price.html',
                    controller: 'offline-priceCtrl'
                }
            }
        })
})